package com.ctsi.ssdc.service;


import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallGoods;
import com.ctsi.ssdc.domain.LitemallGoodsExample;
import com.ctsi.ssdc.service.StrengthenBaseService;

import java.util.List;

/**
 * Service Interface for managing LitemallGoods.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallGoodsService 
	extends StrengthenBaseService<LitemallGoods, Integer, LitemallGoodsExample>{


    /**
    * GET  /litemallGoodss : get the litemallGoodss firstStringBaseColumn.
    */
    PageResult<LitemallGoods> findFirstStringColumn(String goodsSn ,Pageable pageable);

    LitemallGoods findById(Integer goodsId);

    List<LitemallGoods> queryByCategory(List<Integer> list, int offset, Integer limit);
    List<LitemallGoods> queryByCategory(Integer catId, int offset, int limit);

    List<LitemallGoods> queryByNew(int offset, int limit) ;

    List<LitemallGoods> queryByHot(int offset, int limit);


    LitemallGoods findByIdVO(int id);

    List<LitemallGoods> querySelective(Integer categoryId, Integer brandId, String keyword, Boolean isHot, Boolean isNew, Integer page, Integer limit, String sort, String order);

    List<Integer> getCatIds(Integer brandId, String keyword, Boolean isHot, Boolean isNew);

    Integer queryOnSale();

}
